//
//  DBJSecondTabCell.m
//  DBJ
//
//  Created by Captain_czq on 16/11/16.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "DBJSecondTabCell.h"


@interface DBJSecondTabCell ()

@property (weak, nonatomic) IBOutlet UILabel *timeDateLabel;
@property (weak, nonatomic) IBOutlet UIImageView *illPhoto;
@property (weak, nonatomic) IBOutlet UILabel *illType;
@property (weak, nonatomic) IBOutlet UILabel *descLabel;

@end

@implementation DBJSecondTabCell


/* 设置数据 */
-(void)setModel:(DBJSecondTabModel *)model{
    
    _model=model;
    if(model.illIcons!=nil){
    self.illPhoto.image=model.illIcons[0];
    }else{
        
        self.illPhoto.image=[UIImage imageNamed:@"patient_defaultphoto_male"];
    }
        
    self.illType.text=model.illType;
    self.timeDateLabel.text=model.timeDate;
    self.descLabel.text=model.desc;
    self.descLabel.textColor=[UIColor blackColor];
//    self.descLabel.text=@"嘻嘻嘻";
}


@end
